package com.alameda.facade.history;

import com.alameda.media.api.AdMediaProvider;
import com.alameda.video.dto.ApVideoDTO;
import com.alameda.video.vo.ApVideoVO;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Component;

/**
 * 视频播放历史记录 接入层
 *
 * @author Lv
 * @date 2024/10/09
 */
@Component
public class ApVideoHistoryFacade {

    @DubboReference
    private AdMediaProvider adMediaProvider;

    /**
     * 查询视频
     *
     * @param apVideoDTO 移动端视频信息
     * @return
     */
    public ApVideoVO findByVideoId(ApVideoDTO apVideoDTO) {
        return adMediaProvider.findByVideoId(apVideoDTO);
    }
}
